const express = require('express');
const permController = require('../controller/permController.js')

const router = express.Router();

router.get('/menus',permController.getPermByRid)
.get('/rights/list',permController.getAllPerm)
.get('/perm/tree',permController.getAllPermTree)

//导出router 会被加载到app.js入口文件中去
module.exports = router;